package com.hdoit.ares.logical.tp.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.tp.dao.IZhonganCallbackDao;
import com.hdoit.ares.logical.tp.model.ZhonganCallback;
import com.hdoit.ares.logical.viewmodel.tp.ZhonganCallbackSearch;
import com.tennetcn.common.dao.base.IFinderExpression;
import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.enums.OrderEnum;
import com.tennetcn.common.message.PagerModel;
import com.tennetcn.common.utils.FinderExpressionFactory;
/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年01月15日 10:34:36
 * @comment
 */
@Component
public class ZhonganCallbackDaoImpl extends SuperDao<ZhonganCallback> implements IZhonganCallbackDao{

	@Override
	public List<ZhonganCallback> queryList(ZhonganCallbackSearch search, PagerModel pagerModel) {
		IFinderExpression finderExpression = FinderExpressionFactory.createExpression();
		finderExpression.select("*")
						.from(ZhonganCallback.class)
						.addOrder("requestDate", OrderEnum.desc);
		
		return queryList(finderExpression, search, pagerModel);
	}
}
